package com.atguigu.gmall.order.client;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;
@FeignClient(name = "service-order")
public interface OrderFeignClient {

    //去结算页面  回显  收货地址 清单
    @GetMapping("/api/order/auth/trade")
    public Map<String,Object> trade();
    @GetMapping("/api/order/auth/getOrderInfo/{orderId}")
    public  OrderInfo getOrderInfo(@PathVariable  Long orderId);
}
